package com.os.sys.repository;

import com.os.sys.model.T_SYS_Role;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2017/6/14.
 */
public interface RoleRepository extends PagingAndSortingRepository<T_SYS_Role, Long>, JpaSpecificationExecutor<T_SYS_Role> {
        T_SYS_Role findByRoleKey(String key);

        List<T_SYS_Role> findByIdIn(List<Long> ids);

        void deleteAllByIdIn(List<Long> ids);

}
